<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page import="com.solution.common.config.PublicConfig"%>
<%@page import="com.solution.admin.home.constants.IndexConstants"%>
<%
	String basePath = PublicConfig.ROOT_PATH;
	String imgRootURL = PublicConfig.IMG_ROOT_URL;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta content="zh-cn" http-equiv="content-language" />
<meta content="" name="copyright" />

<link rel="icon" href="<%=basePath%>/statics/images/jx.ico"
	type="image/x-icon" />
<link rel="shortcut icon" href="<%=basePath%>/statics/images/jx.ico"
	type="image/x-icon" />
<link rel="bookmark" href="<%=basePath%>/statics/images/jx.ico"
	type="image/x-icon" />

<link rel="stylesheet" type="text/css"
	href="<%=basePath %>/statics/css/style.css" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath %>/statics/css/public.css" />
<script charset="utf-8" language="javascript" type="text/javascript"
	src="<%=basePath %>/statics/js/jquery.1.11.3.min.js"></script>
<script type="text/javascript"
	src="<%=basePath %>/statics/js/jquery.SuperSlide.2.1.1.js"></script>
<!--[if lte IE 6]> 
<script type="text/javascript" src="js/PNG.js"></script> 
<script> 
PNG.fix('*'); 
</script> 
<![endif]-->

<script type="text/javascript">
	//系统域名 
	var rootPath = '<%=basePath%>';
	// 系统上传文件展示域名
	var imgRootURL = '<%=imgRootURL%>';
	// 百度富文本框根路径
	window.UEDITOR_HOME_URL = rootPath + "/statics/plugins/ueditor/";

	$(function() {
		$('a.backtop').click(function() {
			$('body,html').animate({
				scrollTop : 0
			}, 1000);
		});
		//侧边菜单
		$(window).scroll(function() {
			$scrollTo = $(window).scrollTop();

			if ($scrollTo > 100) {
				$('#fixedfloor').show().addClass('fixedfloor');
			} else {
				$('#fixedfloor').hide();
			}
		}).trigger('scroll');
		
		//点击楼层图标跳转到对应的楼层
		$('#fixedfloor ul li a').click(function() {
			$.dot_not_scoll = true;
			$idx = $(this).parents('#fixedfloor').find('a').index($(this));
			$target = $('.hd').find('b').eq($idx);
			$top = parseInt($target.offset().top);

			$('body,html').animate({
				scrollTop : $top
			}, 1000);
			$.dot_not_scoll = undefined;
		});

	});

	$('#fixedfloor li').hover(function() {
		$(this).addClass('current');
	}, function() {
		$(this).removeClass('current');
	});
	
</script>

</head>
<body>
	<c:set var="rootPath" value="<%=basePath %>"></c:set>
	<c:set var="imgRootURL" value="<%=imgRootURL %>"></c:set>
		<!---网站底部开始-->
		<div class="footer">
			<c:if test="${param.showQaFlag == '1' }">
			<div class="site_wrap4">
				<div class="bg1">
					<div class="site_wrap4_con">
						<div class="hd">
							<h3>
								<b>常见问题</b>
							</h3>
						</div>
						<div class="bd">
							<div class="faq_list">
								<ul id='qa_list_container'>
								</ul>
							</div>
						</div>
					</div>
				</div>
			</div>
			</c:if>
		
			<div class="footer0">
				<div class="footer0_con">
					<ul>
						<li><img src="${rootPath}/statics/images/footer_icon1.png" /><span>品类齐全
								轻松购物</span></li>
						<li><img src="${rootPath}/statics/images/footer_icon2.png" /><span>多仓直发
								极速配送</span></li>
						<li><img src="${rootPath}/statics/images/footer_icon3.png" /><span>正品行货
								精致服务</span></li>
						<li><img src="${rootPath}/statics/images/footer_icon4.png" /><span>天天低价
								畅选无忧</span></li>
					</ul>
				</div>
			</div>
			<div class="footer1">
				<div class="footer_con">
					<div class="footer_wrap2">
						<dl id="shopping_finger_container">
							<dt>
								<h3>购物指南</h3>
							</dt>
						</dl>
						<dl id="delivery_container">
							<dt>
								<h3>配送方式</h3>
							</dt>
						</dl>
						<dl id="pay_type_container">
							<dt>
								<h3>支付方式</h3>
							</dt>
						</dl>
						<dl id="after_sales_container">
							<dt>
								<h3>售后服务</h3>
							</dt>
						</dl>

					</div>

				</div>
			</div>
			<div class="footer2">
				<div class="footer2_con">
					<div class="site_footernav">
						<p>
							<a href="#">关于我们</a><span></span> <a href="#">联系我们</a><span></span>
							<a href="#">帮助中心</a><span></span> <a href="#">意见反馈</a>
						</p>
					</div>
					<div class="site_footernav" style="margin-top:20px;">
						<p>
							<a href="http://www.miitbeian.gov.cn/" target="_blank">苏ICP备15038070号-3</a>
						</p>
					</div>
				</div>
			</div>
		</div>
		<!---网站底部结束-->
	<script charset="utf-8" language="javascript" type="text/javascript" src="<%=basePath%>/statics/js/nav.js"></script>
	
	<script type="text/javascript">
		$(function(){
			var url = rootPath + "/pc/footer";
			var params = {
			};
			$.ajax({
				type : "post",
				url : url,
				data : params,
				datatype : "json",
				success : function(json) {
					if(json.qaList){
						for(var i = 0; i< json.qaList.length ; i++){
							var config = json.qaList[i];
							var li =$("<li><a href=\""+config.linkUrl+"\">"+config.configTitle+"</a></li>");
							$("#qa_list_container").append(li);
						}
					}
					
					if(json.shoppingList){
						for(var i = 0; i< json.shoppingList.length ; i++){
							var config = json.shoppingList[i];
							var dd =$("<dd><a href=\""+config.linkUrl+"\">"+config.configTitle+"</a></dd>");
							$("#shopping_finger_container").append(dd);
						}
					}
					if(json.deliveryList){
						for(var i = 0; i< json.deliveryList.length ; i++){
							var config = json.deliveryList[i];
							var dd =$("<dd><a href=\""+config.linkUrl+"\">"+config.configTitle+"</a></dd>");
							$("#delivery_container").append(dd);
						}
					}
					if(json.payTypeList){
						for(var i = 0; i< json.payTypeList.length ; i++){
							var config = json.payTypeList[i];
							var dd =$("<dd><a href=\""+config.linkUrl+"\">"+config.configTitle+"</a></dd>");
							$("#pay_type_container").append(dd);
						}
					}
					if(json.afterSalesList){
						for(var i = 0; i< json.afterSalesList.length ; i++){
							var config = json.afterSalesList[i];
							var dd =$("<dd><a href=\""+config.linkUrl+"\">"+config.configTitle+"</a></dd>");
							$("#after_sales_container").append(dd);
						}
					}
				},
				error : function() {
					layer.msg('查询指南类信息失败');
				}
			});
		});
	</script>
</body>
</html>